package com.yugu.park.system.mapper;

import com.yugu.park.dto.TreeNode;
import com.yugu.park.system.entity.SysRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 角色信息表
 *
 * @author guxf
 * @email sjzyug@163.com
 * @date 2023-08-17 15:04:07
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {
	List<SysRoleEntity> page(@Param("info") SysRoleEntity search);
	void batchRoleAndPers(@Param("info")SysRoleEntity t, @Param("pers")List<TreeNode> permissions);
	void deleteRoleAndPersByRoleId(@Param("roleId")String roleId);
}
